package cn.eaay.stock.config.system;

import cn.eaay.stock.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 系统配置类
 */
@Configuration
public class SystemConfig {

    /**
     * 配置id生成器bean
     *
     * @return {@link IdWorker}
     */
    @Bean
    public IdWorker idWorker() {
        return new IdWorker();
    }
}
